﻿@{
    ViewBag.Title = Local("PermissionSchemaView.PageTitle");
}

@model IEnumerable<PermissionSchema>

<div class="box">
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>@Local("PermissionSchema.SchemaName")</td>
                <td>@Local("PermissionSchema.Description")</td>
                <td class="w160">@Local("PermissionSchema.LastModified")</td>
            </tr>
        </thead>
        <tbody class="hoverline">
        @foreach (var schema in Model)
        { 
            <tr>
                <td>
                    @schema.SchemaName
                    <div class="action-panel">
                        <a href="javascript:void(0);" onclick="return openModal('@CUrls.DialogForumPermissionSchemaView?id=@schema.SchemaID', 400);">@Local("PermissionSchema.Edit")</a>
                        @Html.AjaxLink(HttpAction.Delete, "PermissionSchema.Delete", new { did = schema.SchemaID })
                    </div>
                </td>
                <td>@schema.Description</td>
                <td class="w160">@schema.LastModified.ToLocalDateTimeString()</td>
            </tr>
        }
        </tbody>
    </table>
</div>

<div class="box">
    <button onclick="return openModal('@CUrls.DialogForumPermissionSchemaView', 400);"> @Local("PermissionSchema.New") </button>
</div>

